package org.jcc.core.cs.generic;

public class GenericSaveService {
	
	public <XXX> XXX save(XXX xxx) {
		// TODO pseudo code
		// insert xxx into table XXX
		return xxx;
	}
	
	public static void main(String[] args) {
		GenericSaveService service = new GenericSaveService();
		
		// ...
		Student s = new Student();
		Teacher t = new Teacher();
		
		Student ss = service.save(s);
		Teacher ts = service.save(t);
		
		System.out.println(ss);
		System.out.println(ts);
		
	}

}
